<div class="user-form">
<% form_for(@user) do |f| %>
  <%= f.error_messages %>
<table class="user-table" cellpadding="5" align="center">
<span class="user-header">请您注册新用户</span>
<tr>
	<td><label for="username">用户名:</label></td>
    <td><%= f.text_field :username %></td>
</tr>
<tr>
    <td><label for="password">密码:</label></td> 
	<td><%= f.password_field "password" %></td> 
</tr>
<tr>
	<td><label for="password_confirmation">重新输入一次密码:</label></td> 
	<td><%= f.password_field "password_confirmation" %></td> 
</tr>
<tr>
	<td><label for="email">电子邮件:</label></td> 
    <td><%= f.text_field :email %></td>
</tr>
<tr><td></td><td align="right"><%= f.submit "Create" %></td>
</tr>
</table>
<% end %>
</div>